<template>
  <div id="app">
    <router-view></router-view>
    <Footer v-if="showFooter"></Footer>
  </div>
</template>

<script>
import Footer from "./components/Footer.vue";

export default {
  name: "App",
  data: function () {
    return {
      tabBar: ['/', '/info1', '/info2', '/mine']
    };
  },
  computed: {
    showFooter: function () {
      return this.tabBar.includes(this.$route.path);
    },
  },
  components: {
    Footer,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /*margin-top: 60px;*/
}
</style>
